﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.Master" AutoEventWireup="true" CodeBehind="UpdateSuccessful.aspx.cs" Inherits="Web.UpdateSuccessful" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
        <style>
        @charset "utf-8";
/* 购买成功 */
.buySucceedBox{
    width: 100%;
    text-align: center;
    margin-top: 70px;
}
.buySucceedBox strong{
    display: inline-block;
    font-size: 16px;
    color: #333;
    margin-top: 18px;
    width: 100%;
    text-align: center;
}
.buySucceedBox p{
    text-align: center;
    color: #7d7d7d;
    font-size: 14px;
    margin-top: 22px;
}
/* 返回 */
.back-disk-console{
    text-align: center;
    margin-top: 22px;
}
.back-disk-console span{
    display: inline-block;
    width: 120px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #1574ff;
    color: #fff;
    border-radius: 2px;
    cursor: pointer;
}
.back-disk-console span:hover{
    background: #064eb7;
}

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="storageVolumes clearfix control_main_disk_right" ng-controller="buySucceedCtrl">
    <!-- 购买成功 -->
    <div class="buySucceedBox">
        <img src="images/storage/v3-buySucceed-icon.png" alt="" />
        <strong>修改成功！</strong>
        <p><span class="js-wait"></span>s后自动跳转至首页</p>
    </div>

    <!-- 返回 -->
    <div class="back-disk-console">
        <span >返回</span>
    </div>
</div>  
    <script>
        var btn = document.querySelector('.back-disk-console');
        var div = document.querySelector('.js-wait');
        btn.addEventListener('click', function () {
            location.href = 'UserIndex.aspx';
        })
        var timer = 5;
        timee();
        setInterval(function () {
            if (timer == 0) {
                location.href = 'UserIndex.aspx';
            }
            else {
                div.innerHTML = timer ;
                timer--;
            }
        }, 1000)
        function timee() {
            if (timer == 0) {
                location.href = 'UserIndex.aspx';
            }
            else {
                div.innerHTML =  timer;
                timer--;
            }
        }
    </script>
</asp:Content>
